//
//  WYTSettingsView.m
//  Diary
//
//  Created by 王艺拓 on 15/11/11.
//  Copyright © 2015年 王艺拓. All rights reserved.
//

#import "WYTSettingsView.h"
#import "WYTTimeTool.h"

#define kSettingTag 386010

@interface WYTSettingsView ()



@end

@implementation WYTSettingsView

- (instancetype)init{
    self = [super init];
    if (self) {
        [self setUpScenes];
    }
    return self;
}

- (void)setUpScenes{
    self.calendarView = [[WYTCalendarView alloc]init];
    self.calendarView.frame = CGRectMake(0, 0, kScreenWidth * 0.803 / 3 * 2, kScreenWidth * 0.803 / 3 * 2);
    self.calendarView.backgroundColor = [UIColor clearColor];
    [self addSubview:self.calendarView];
    
    self.lockButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.lockButton.frame = CGRectMake(CGRectGetMaxX(self.calendarView.frame), 0, kScreenWidth * 0.803 / 3, kScreenWidth * 0.803 / 3);
    self.lockButton.backgroundColor = [UIColor clearColor];
    self.lockButton.tag = kSettingTag;
    [self addSubview:self.lockButton];
    
    self.syncButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.syncButton.frame = CGRectMake(CGRectGetMinX(self.lockButton.frame), CGRectGetMaxY(self.lockButton.frame), CGRectGetWidth(self.lockButton.frame), CGRectGetHeight(self.lockButton.frame));
    self.syncButton.backgroundColor = [UIColor clearColor];
    self.syncButton.tag = kSettingTag + 1;
    [self addSubview:self.syncButton];
    
    self.cacheButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.cacheButton.frame = CGRectMake(CGRectGetMinX(self.syncButton.frame), CGRectGetMaxY(self.syncButton.frame), CGRectGetWidth(self.lockButton.frame), CGRectGetHeight(self.lockButton.frame));
    self.cacheButton.backgroundColor = [UIColor clearColor];
    self.cacheButton.tag = kSettingTag + 2;
    [self addSubview:self.cacheButton];
    
    self.aboutUSButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.aboutUSButton.frame = CGRectMake(0, CGRectGetMaxY(self.calendarView.frame), CGRectGetWidth(self.lockButton.frame), CGRectGetHeight(self.lockButton.frame));
    self.aboutUSButton.backgroundColor = [UIColor clearColor];
    self.aboutUSButton.tag = kSettingTag + 3;
    [self addSubview:self.aboutUSButton];
    
    self.contactUSButton = [UIButton buttonWithType:UIButtonTypeCustom];
    self.contactUSButton.frame = CGRectMake(CGRectGetMaxX(self.aboutUSButton.frame), CGRectGetMaxY(self.calendarView.frame), CGRectGetWidth(self.lockButton.frame), CGRectGetHeight(self.lockButton.frame));
    self.contactUSButton.backgroundColor = [UIColor clearColor];
    self.contactUSButton.tag = kSettingTag + 4;
    [self addSubview:self.contactUSButton];
}

@end
